//
//  MyTouComplaintsViewController.m
//  明和智能
//
//  Created by 李李善 on 2018/8/24.
//  Copyright © 2018年 inno. All rights reserved.
//

#import "MyTouComplaintsViewController.h"

@interface MyTouComplaintsViewController ()

@end

@implementation MyTouComplaintsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.

}
-(void)onClickButton:(UIButton *)button
{
    
}

-(void)onLoadViewByWillAppear:(UIView *)view
{

    UILabel *money = ({
        UILabel *l  = [UILabel new];
        //l.backgroundColor = [UIColor redColor];
        l.textColor = [UIColor blackColor];
        l.text = @"  交易编号:123123";
        l.font = kSysFont(kFitW(12));
        l.hasBottomLine = YES;
        [view addV:l];
        l;
    });
    
    HLTextView *textV = ({
        HLTextView *l  = [HLTextView new];
        l.placeholder = @"请写下您要投诉内容...";
        l.placeholderColor = hexCOLOR(@"B2B2B2");
        [view addV:l];
        l;
    });
    
    
    
    UIButton *che = ({
        UIButton *l  = [UIButton buttonWithType:UIButtonTypeCustom];
        [l setNormalTitle:@"提交"];
        l.titleLabel.font = kSysFont(kFitW(12));
        [l setNormalTitleColor:[UIColor whiteColor]];
        [l AddTarget:self Action:@selector(onClickButton:)];
        l.backgroundColor = hexCOLOR(@"FD8F25");
        [view addV:l];
        l;
    });
    
   
    
    [self onMainQueueAddSub:^(UIView *view, CGPoint origin, CGSize size, CGPoint center) {
        money.frame = CGRectMake(0, 0, size.width,kFitH(60));
  
        textV.frame = CGRectMake(0,kFitH(60),size.width,size.height-kFitH(60)-kFitH(50));
        
        
        che.size = CGSizeMake(size.width,kFitW(50));
        che.bottom = size.height;
        che.left = 0;
        
    }];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
